<%inherit file="/index.mako" />
<%def name="title()">Evenement</%def>
<%
	def print_evenement(evenement):
		spec="""
			<div id="spec_list_pag" align="center">
				<p class="spectacles_title"><a href="/evenement/view/%s">%s</a></p>
				<p class="spectacles_content">%s</p>
			</div>
			
		""" % (evenement.id, evenement.name, evenement.content)
		return spec
		
	def print_evenement_list(evenements):
		evenement_list = '<p style="color: white;">Liste des Evenements</p>'
		for evenement in evenements:
			evenement_list = evenement_list+ """
											<p>
												<a href="/evenement/view/%s" class="spec_link">%s</a>
											</p>
											 """ % (evenement.id, evenement.name)	
		
		return "<div id='spec_list'>%s</div>" % evenement_list
%>	
<div>
	
		${print_evenement_list(c.evenements) | n}
	
	<div style="float: left; width: 680px" align="left">
		%for evenement in c.evenements:
			${print_evenement(evenement) | n}
		%endfor
	</div>
	<div style="clear: both;"></div>
</div>